package com.zygh.policeasset.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zygh.policeasset.mapper.AssetsSystemMapper;
import com.zygh.policeasset.pojo.AssetsSystem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/AssetsSystemService.class */
public class AssetsSystemService {
    @Autowired
    AssetsSystemMapper assetsSystemMapper;

    public AssetsSystem queryById(Integer id) {
        return this.assetsSystemMapper.queryById(id);
    }

    public PageInfo queryAll(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo(this.assetsSystemMapper.queryAll());
    }

    public int add(AssetsSystem assetsSteps) {
        return this.assetsSystemMapper.add(assetsSteps);
    }

    public int update(AssetsSystem assetsSteps) {
        return this.assetsSystemMapper.update(assetsSteps);
    }

    public int deleteById(Integer id) {
        return this.assetsSystemMapper.deleteById(id);
    }
}